﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>CompanyName.ProjectName.Web.Host</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" />

    <environment names="Development">
        <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
        <link rel="stylesheet" href="~/lib/font-awesome/css/font-awesome.min.css" />
        <link rel="stylesheet" href="~/mgr/adminlte/dist/css/AdminLTE.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/mgr/adminlte/dist/css/skins/skin-blue.css" />
        <link rel="stylesheet" href="~/mgr/css/common.min.css" asp-append-version="true" />
    </environment>
    <environment names="Staging,Production">
        <link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/css/bootstrap.min.css"
              asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
              asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
        <link rel="stylesheet" href="~/lib/font-awesome/css/font-awesome.min.css" />
        <link rel="stylesheet" href="~/mgr/adminlte/dist/css/AdminLTE.min.css" asp-append-version="true" />
        <link rel="stylesheet" href="~/mgr/adminlte/dist/css/skins/skin-blue.min.css">
        <link rel="stylesheet" href="~/mgr/css/common.min.css" asp-append-version="true" />
    </environment>

    <style type="text/css">
        html {
            overflow: hidden;
        }
    </style>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue sidebar-mini fixed">
    <mini-profiler />
    <div class="wrapper">
        <!-- Main Header -->
        <header class="main-header">
            <!-- Logo -->
            <a href="" class="logo">
                <!-- mini logo for sidebar mini 50x50 pixels -->
                <span class="logo-mini"><b>CompanyName.ProjectName.Web.Host</b></span>
                <!-- logo for regular state and mobile devices -->
                <span class="logo-lg"><b>CompanyName.ProjectName</b>Web.Host</span>
            </a>

            <!-- Header Navbar -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">切换导航</span>
                </a>
                <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
                    <ul class="nav navbar-nav">
                        <!--<li><a href="#">平台 <span class="sr-only">(current)</span></a></li>
                        <li><a href="#">订单</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">会员 <span class="caret"></span></a>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="#">会员积分管理</a></li>
                                <li><a href="#">会员等级管理</a></li>
                                <li><a href="#">会员信息管理</a></li>
                                <li class="divider"></li>
                                <li><a href="#">会员营销管理</a></li>
                                <li class="divider"></li>
                                <li><a href="#">会员优惠券</a></li>
                            </ul>
                        </li>-->
                    </ul>
                </div>
                <!-- Navbar Right Menu -->
                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        <!-- Messages: style can be found in dropdown.less-->
                        <li class="dropdown messages-menu" style="display:block">
                            <!-- Menu toggle button -->
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-envelope-o"></i>
                                <span class="label label-success">4</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">你有4条提醒</li>
                                <li>
                                    <!-- inner menu: contains the messages -->
                                    <ul class="menu">
                                        <li>
                                            <!-- start message -->
                                            <a href="#">
                                                <div class="pull-left">
                                                    <!-- User Image -->
                                                    <img src="/mgr/ui/img/photos/girl1.png" class="img-circle" alt="User Image">
                                                </div>
                                                <!-- Message title and timestamp -->
                                                <h4>
                                                    新用户注册
                                                    <small><i class="fa fa-clock-o"></i> 现在</small>
                                                </h4>
                                                <!-- The message -->
                                                <p>新用户注册!</p>
                                            </a>
                                        </li>
                                        <!-- end message -->
                                    </ul>
                                    <!-- /.menu -->
                                </li>
                                <li class="footer"><a href="#">查看所有提醒</a></li>
                            </ul>
                        </li>
                        <!-- /.messages-menu -->
                        <!-- Notifications Menu -->
                        <li class="dropdown notifications-menu" style="display:block">
                            <!-- Menu toggle button -->
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-bell-o"></i>
                                <span class="label label-warning">10</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">你有10条消息</li>
                                <li>
                                    <!-- Inner Menu: contains the notifications -->
                                    <ul class="menu">
                                        <li>
                                            <!-- start notification -->
                                            <a href="#">
                                                <i class="fa fa-users text-aqua"></i> 新用户注册!
                                            </a>
                                        </li>
                                        <!-- end notification -->
                                    </ul>
                                </li>
                                <li class="footer"><a href="#">查看所有</a></li>
                            </ul>
                        </li>
                        <!-- Tasks Menu -->
                        <li class="dropdown tasks-menu" style="display:block">
                            <!-- Menu Toggle Button -->
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-flag-o"></i>
                                <span class="label label-danger">9</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">您有9条消息</li>
                                <li>
                                    <!-- Inner menu: contains the tasks -->
                                    <ul class="menu">
                                        <li>
                                            <!-- Task item -->
                                            <a href="#">
                                                <!-- Task title and progress text -->
                                                <h3>
                                                    superui第一版发布啦
                                                    <small class="pull-right">20%</small>
                                                </h3>
                                                <!-- The progress bar -->
                                                <div class="progress xs">
                                                    <!-- Change the css width attribute to simulate progress -->
                                                    <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">20% 完成</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li>
                                        <!-- end task item -->
                                    </ul>
                                </li>
                                <li class="footer">
                                    <a href="#">查看所有</a>
                                </li>
                            </ul>
                        </li>
                        <!-- User Account Menu -->
                        <li class="dropdown user user-menu">
                            <!-- Menu Toggle Button -->
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <!-- The user image in the navbar-->
                                <img src="@(string.IsNullOrWhiteSpace(ViewBag.Avatar)?"/mgr/ui/img/photos/girl1.png":ViewBag.Avatar)" class="user-image" alt="User Image">
                                <!-- hidden-xs hides the username on small devices so only the image appears. -->
                                <span class="hidden-xs"> @(string.IsNullOrWhiteSpace(ViewBag.RealName) ? "" : ViewBag.RealName) </span>
                            </a>
                            <ul class="dropdown-menu" style="width:140px">
                                <li>
                                    <a href="#" id="LayoutResetpwd">
                                        <i class="ace-icon fa fa-cog"></i>
                                        修改密码
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="#" onclick="document.getElementById('formloginoff').submit()">
                                        <i class="ace-icon fa fa-power-off"></i>
                                        退出
                                    </a>
                                    <div style="display:none">
                                        <form id="formloginoff" method="post" action="/Account/LogOff">
                                            @Html.AntiForgeryToken()
                                        </form>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <!-- Control Sidebar Toggle Button -->
                        @*<li>
                                <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                            </li>*@
                    </ul>
                </div>
            </nav>
        </header>
        <!-- Left side column. contains the logo and sidebar -->
        <aside class="main-sidebar">
            <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar">
                <!-- Sidebar user panel (optional) -->
                <div class="user-panel">
                    <div class="pull-left image">
                        <img src="@(string.IsNullOrWhiteSpace(ViewBag.Avatar)?"/mgr/ui/img/photos/girl1.png":ViewBag.Avatar)" class="img-circle" alt="用户头像">
                    </div>
                    <div class="pull-left info">
                        <p>@(string.IsNullOrWhiteSpace(ViewBag.RealName) ? "" : ViewBag.RealName) </p>

                        @*<a href="#"><i class="fa fa-circle text-success"></i> 在线</a>*@
                    </div>
                </div>
                <!-- search form (Optional) -->
                @*<form action="#" method="get" class="sidebar-form">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" placeholder="Search...">
                            <span class="input-group-btn">
                                <button type="submit" name="search" id="search-btn" class="btn btn-flat">
                                    <i class="fa fa-search"></i>
                                </button>
                            </span>
                        </div>
                    </form>*@
                <!-- /.search form -->
                <!-- Sidebar Menu -->
                <ul class="sidebar-menu"></ul>
                <!-- /.sidebar-menu -->
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper" id="content-wrapper">

            <div class="content-tabs">
                <button class="roll-nav roll-left tabLeft" onclick="scrollTabLeft()">
                    <i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs menuTabs tab-ui-menu" id="tab-menu">
                    <div class="page-tabs-content" style="margin-left: 0px;">

                        @*<a href="javascript:void(0);" id="tab_tab_xx00001" data-id="tab_xx00001" class="menu_tab active">test</a>*@
                    </div>
                </nav>
                <button class="roll-nav roll-right tabRight" onclick="scrollTabRight()">
                    <i class="fa fa-forward" style="margin-left: 3px;"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown tabClose" data-toggle="dropdown">
                        页签操作<i class="fa fa-caret-down" style="padding-left: 3px;"></i>
                    </button>
                    <ul class="dropdown-menu dropdown-menu-right" style="min-width: 128px;">
                        <li><a class="tabReload" href="javascript:refreshTab();">刷新当前</a></li>
                        <li><a class="tabCloseCurrent" href="javascript:closeCurrentTab();">关闭当前</a></li>
                        <li><a class="tabCloseAll" href="javascript:closeOtherTabs(true);">全部关闭</a></li>
                        <li><a class="tabCloseOther" href="javascript:closeOtherTabs();">除此之外全部关闭</a></li>
                    </ul>
                </div>
                <button class="roll-nav roll-right fullscreen" onclick="handleFullScreen();"><i class="fa fa-arrows-alt"></i></button>
            </div>

            <div class="content-iframe ">
                <div class="tab-content " id="tab-content">
                    @*<div role="tabpanel" class="tab-pane active" id="tab_xx00001">
                            test
                        </div>*@
                </div>
            </div>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->

        <footer class="main-footer">
            <!-- To the right -->
            <div class="pull-right hidden-xs">
                ac.saas
            </div>
            <!-- Default to the left -->
            版权所有 &copy;agent center 2017-2018&nbsp;&nbsp;&nbsp;&nbsp;   闽ICP备xxxxxxxx号-1
        </footer>

        <div class="control-sidebar-bg"></div>
    </div>
    <!-- ./wrapper -->

    <environment names="Development">
        <script src="~/lib/jquery/dist/jquery.js"></script>
        <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
        <script src="~/mgr/js/common.min.js" asp-append-version="true"></script>
        <script src="~/mgr/js/app.js" asp-append-version="true"></script>
    </environment>
    <environment names="Staging,Production">
        <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.3.min.js"
                asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
                asp-fallback-test="window.jQuery">
        </script>
        <script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.6/bootstrap.min.js"
                asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
                asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal">
        </script>
        <script src="~/mgr/js/common.min.js" asp-append-version="true"></script>
        <script src="~/mgr/js/app.min.js" asp-append-version="true"></script>
    </environment>

    <script type="text/javascript">
        $(function () {
            //alert(111);
            addTabs(({
                id: 'xx00001', title: '欢迎页', close: false, url: 'Home/Dashboard?ram=' + Math.random()
            }));
            //  alert(555555555555555);
            //addTabs(({ id: '00001', title: '控制台', close: false, url: 'Home/Dashboard' }));
            App.fixIframeCotent();
            //  alert(222);
            $('.sidebar-menu').sidebarMenu({ url: "/home/menu?ram=" + Math.random(), param: { strUser: 'admin' } });

            $("#LayoutResetpwd").on("click", function () {

                layer.open({
                    type: 2,
                    title: '修改密码',

                    shadeClose: false,
                    shade: 0.8,
                    area: ['500px', '300px'],
                    content: '/SysUser/ChangePassword', //iframe的url
                    success: function (layero, index) {
                    },
                    end: function () {

                    }
                });

                //$.fn.modalOpen({
                //    id: "setPassword",
                //    title: '修改密码',
                //    url: '/SysUser/ChangePassword' ,
                //    width: "500px",
                //    height: "300px",
                //    callBack: function (iframeId) {
                //        top.frames[iframeId].submitForm();
                //    }
                //});

            })
        });
    </script>
</body>
</html>